Skip to content

Fix mypy types changed by blessed update - #191

Open
thomasballinger wants to merge 1 commit into
mainfrom
fix-mypy
Open

thomasballinger wants to merge 1 commit into
mainfrom
fix-mypy

Conversation

@thomasballinger

Copy link
Copy Markdown
Member

No description provided.

@jquast jquast left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry about mypy typing being poor with blessed. I have considered, now that blessed no longer depends on curses in any way, making it "singleton-free", and all terminal capabilities are now in a fixed database, I could replace a lot of the "magic getattr" with concrete, typed methods, like for this one.

This fixes the direct ones like move, but doesn't fix the really magic ones, like "bright_red_on_green_italic"

move_yx is much better than move for readability, anyway

Comment thread curtsies/window.py

self.write(self.t.move_x(0))
# Blessed's Terminal.move_x doesn't type this, see
# https://github.com/jquast/blessed/blob/master/tox.ini#L121-L130

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this hyperlink became out of date, suggest a commit-stable url for source code,

Suggested change
# https://github.com/jquast/blessed/blob/master/tox.ini#L121-L130
# https://github.com/jquast/blessed/blob/362dbe2483d064b0fe7c3b3535c91bc6b6fa5345/tox.ini#L131-L135

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants